<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<div>
    <h3 class="text-center" style="text-align:center;width:90%;">凭证管理</h3>
    <!--<button class="btn btn-primary btn-large" style="width:10%;">生成凭证</button>-->
</div>
<div>
    <hr>

    <table id="certificate-list" class="table table-striped table-hover">


    </table>
    <span>
        备注：凭证类型：1为学校用户、2为区县用户、3为市局用户、4为高级用户。
    </span>

    <a id="btn-create-certificate" href="#modal-create-certificate" role="button" class="btn btn-primary btn-large"
       data-toggle="modal" style="float:right;">生成凭证</a>

    <div id="modal-create-certificate" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel"
         aria-hidden="true">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h3 id="myModalLabel">
                生成凭证
            </h3>
        </div>
        <div class="modal-body">
            <table style="margin-bottom:1%;">
                <tr>
                    <td>选择凭证类型</td>
                    <td>
                        <select id="certificate_type">
                            <option value="1">学校用户</option>
                            <option value="2">区县用户</option>
                            <option value="3">市局用户</option>
                            <option value="4">高级用户</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>凭证码</td>
                    <td><input id="certificate_code" type="text" /></td>
                    <td><button class="btn btn-primary" onclick="createCertificateCode()">生成随机凭证码</button></td>
                </tr>
            </table>
            <span>
                备注：凭证类型：1为学校用户、2为区县用户、3为市局用户、4为高级用户。
            </span>
        </div>
        <div class="modal-footer">
            <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
            <button class="btn btn-primary" onclick="saveCertificate()">保存凭证</button>
        </div>
    </div>

    <div id="alert-dialog" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel"
         aria-hidden="true">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h3>
                提示信息
            </h3>
        </div>
        <div class="modal-body">
            <span id="alert-infor"></span>
        </div>
        <div class="modal-footer">
            <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
        </div>
    </div>
</div>
</div>
</div>